using FPLibrary;
using UnityEngine;

namespace PathX
{
    public struct Position : IPositioned
    {
        private FPVector _pos;
        
        public Position(FPVector pos)
        {
            _pos = pos;
        }
        
        public FPVector position
        {
            get { return _pos; }
        }
        
        public static implicit operator FPVector(Position pos)
        {
            return pos.position;
        }
        
        public static implicit operator Position(FPVector pos)
        {
            return new Position(pos);
        }
        
        public override string ToString()
        {
            return "Position: " + _pos.ToString();
        }
    }
}